home *** CD-ROM | disk | FTP | other *** search
/ Doujin CG Kokoro Library - Health Center / KOKORO LIBRARY.ISO / html / kokoro.swf / scripts / DefineSprite_1697 / frame_1 / DoAction.as
Encoding:
Text File  |  2002-12-29  |  522 b   |  21 lines

  1. function fushigiOn()
  2. {
  3.    w = _width;
  4.    h = _height;
  5.    w2 = stage_w / w * 100;
  6.    h2 = stage_h / h * 100;
  7.    x = _X;
  8.    y = _Y;
  9.    setProperty("_parent", _xscale, w2);
  10.    setProperty("_parent", _yscale, h2);
  11.    setProperty("_parent", _X, (- x + w / 2) * w2 / 100);
  12.    setProperty("_parent", _Y, (- y + h / 2) * h2 / 100);
  13. }
  14. function fushigiOff()
  15. {
  16.    setProperty("_parent", _xscale, 100);
  17.    setProperty("_parent", _yscale, 100);
  18.    setProperty("_parent", _X, 0);
  19.    setProperty("_parent", _Y, 0);
  20. }
  21.